package com.css.fxfzypg.modules.baseData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.modules.baseData.queryParams.FaultageQueryParams;
import com.css.fxfzypg.modules.baseData.entity.FaultageEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-17 14:14
 */
public interface FaultageService {


    FaultageEntity saveFaultage(FaultageEntity faultageEntity);

    FaultageEntity findFaultageById(String dataFaultageId);
    List<FaultageEntity> getFaultByTaskId(String taskId);

    JSONObject getAllFaultageByParams(FaultageQueryParams queryParams);

    void deleteFaultage(List<String> ids);

    void exportExcel(HttpServletResponse response)throws IOException;

    void importExcel(MultipartFile file)throws IOException;
}
